function Seed_ver(self) {
    button_disabled(self,'loading',1);
    layer.load(1, {
        shade: [0.1,'#fff'] //0.1透明度的白色背景
    });
    $.get("/CenterInc/view_inc/Seed_email.aspx?mode=3",function (data) {
        if(data["error"]!=undefined){
            layer.closeAll('loading');
            layer.msg(data["error"], {icon: 5});
            button_disabled(self,'发送验证码',2);
            return;
        }
        layer.closeAll('loading');
        layer.msg('发送成功', {icon: 6});
        button_disabled(self,'发送验证码',2);
        return;
    });

}

function Seed_content(self,article_id) {
    button_disabled(self,'loading',1);
    layer.load(1, {
        shade: [0.1,'#fff'] //0.1透明度的白色背景
    });
    var CommentContent=$("#CommentContent").val();
    var EmailVer=$("#EmailVer").val();
    if((CommentContent.length==0)||(EmailVer.length==0)){
        layer.closeAll('loading');
        layer.msg("评论框或验证码不能留空", {icon: 5});
        button_disabled(self,'发布评论',2);
        return;
    }
    if(fontMaxMin(5,50,CommentContent)){
        layer.closeAll('loading');
        layer.msg("评论内容再5~50个字符之间哦", {icon: 5});
        button_disabled(self,'发布评论',2);
        return;
    }
    $.post("/CenterInc/view_inc/Comment_inc.aspx?mode=1",{article_id:article_id,EmailVer:EmailVer,conntent:CommentContent},function (data) {
        console.log(data);
        if(data["error"]!=undefined){
            layer.closeAll('loading');
            layer.msg(data["error"], {icon: 5});
            button_disabled(self,'发布评论',2);
            return;
        }
        layer.closeAll('loading');
        layer.msg(data["msg"], {icon: 6});
        button_disabled(self,'发布评论',2);
        setTimeout("window.location.reload()",2000);
    });
}

function Pay_article(id) {
    layer.confirm('请确认是否需要购买本文内容', {
        btn: ['确认','取消'] //按钮
    }, function(){
        $.post("/CenterInc/view_inc/user_pay_inc.aspx?mode=1",{article_id:id},function (data) {
            if(data["error"]!=undefined){
                layer.msg(data["error"], {icon: 5});
                return;
            }
            layer.msg('支付成功', {icon: 6});
            setTimeout("window.location.reload()",2000);
        });
    }, function(){
        layer.msg('欢迎您下次光临', {icon: 6});

    });
}

function Follow(autorID) {
    $.post("/CenterInc/view_inc/Follow_inc.aspx?mode=1",{follow_fans_id:autorID},function (data) {
        if(data["error"]!=undefined){
            Popup.msg(data["error"],{icon:1});
            return;
        }
        Popup.msg(data["msg"],{icon:1});
        setTimeout("window.location.reload()",2000);
        return;
    });
}
function cancelFollow(autorID) {
    $.post("/CenterInc/view_inc/Follow_inc.aspx?mode=2",{follow_fans_id:autorID},function (data) {
        if(data["error"]!=undefined){
            Popup.msg(data["error"],{icon:1});
            return;
        }
        Popup.msg(data["msg"],{icon:1});
        setTimeout("window.location.reload()",2000);
        return;
    });
}